﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZR.Model.Dto.Auth
{
    /// <summary>
    /// 创建公私密钥传入参数实体
    /// </summary>
    public class RsaInputDto
    {
        /// <summary>
        /// 生成密钥文件前缀
        /// </summary>
        public string Prefix { get; set; }
    }

    /// <summary>
    /// 获取加密文件传参实体
    /// </summary>
    public class DesInputDto
    {
        /// <summary>
        /// 密钥文件前缀
        /// </summary>
        public string Prefix { get; set; }

        /// <summary>
        /// 电子签名
        /// </summary>
        public string Signature { get; set; }

        /// <summary>
        /// 密文
        /// </summary>
        public string Content { get; set; }
    }

    /// <summary>
    /// 返回实体
    /// </summary>
    public class RsaReturnDto
    {
        /// <summary>
        /// 生成密钥文件前缀
        /// </summary>
        public byte[] publicKey { get; set; }

        /// <summary>
        /// 电子签名
        /// </summary>
        public string signature { get; set; }
    }
}
